﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TCE_StatusSummariesUserControl.ascx.cs"
    Inherits="TRIG_MOD_STATUSSUMMARY.TCE_StatusSummaries.TCE_StatusSummariesUserControl" %>
<link rel="Stylesheet" type="text/Css" href="/_layouts/TRIG_MOD_STATUSSUMMARY/tce.css" />

<script type="text/javascript" src="/Registry/JSFiles/prototype.js"></script>
<script type="text/javascript" src="/projects/25/_layouts/SPUtility.js"></script>

<asp:UpdatePanel ID="uptStSumError" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Label ID="errorMessage" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlDocsTypes" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlDocsTypes_SelectedIndexChanged2">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="ddlDocsTypes" />
    </Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:CheckBox ID="ckAsUnderRev" Checked="false" Text="View As-Built Drawings Under Review"
                        runat="server" AutoPostBack="true" OnCheckedChanged="ckAsUnderRev_CheckedChanged"
                        Visible="false" />
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="ckAsUnderRev" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="x" runat="server">
    <ContentTemplate>
        <asp:RadioButtonList ID="rdDates" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
            OnSelectedIndexChanged="rdDates_SelectedIndexChanged">
            <asp:ListItem Value="1" Text="Between Dates"></asp:ListItem>
            <asp:ListItem Selected="true" Value="0">As of Today</asp:ListItem>
        </asp:RadioButtonList>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <SharePoint:DateTimeControl ID="stDt" runat="server" DateOnly="true" LocaleId="2057" />
                </td>
                <td>
                    <SharePoint:DateTimeControl ID="endDt" runat="server" DateOnly="true" LocaleId="2057" Visible="false" />
                </td>
                
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="rdDates" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnProcessTCE" runat="server" Text="Get Summary" OnClick="btnProcessTCE_Click" />
                </td>
                <td>
                    <asp:Button ID="btnClear" runat="server" Text="Clear Summary" 
                        onclick="btnClear_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblDates" ForeColor="Red" Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnLink" Text="Export to Excel" 
                        onclick="btnLink_Click2" />
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnProcessTCE" />
    </Triggers>
</asp:UpdatePanel>



<asp:UpdatePanel ID="uptStSumGrid" runat="server">
    <ContentTemplate>
        <asp:GridView ID="stSumGrid" runat="server" AutoGenerateColumns="true" AllowPaging="True"
            AlternatingRowStyle-CssClass="alt" CommandRowStyle-CssClass="ftr" CssClass="grid"
            EditRowStyle-CssClass="EditRowStyle" EnableModelValidation="True" FieldHeaderStyle-CssClass="hdr"
            GridLines="None" PagerStyle-CssClass="pgr" PageSize="20" RowStyle-CssClass="mGridRowStyle"
            SelectedRowStyle-CssClass="SelectedRowStyle" 
            OnPageIndexChanging="stSumGrid_PageIndexChanging" 
            onrowdatabound="stSumGrid_RowDataBound">
            <PagerSettings Mode="NextPreviousFirstLast" />
        </asp:GridView>
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnProcessTCE" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="uptFooter" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblr1" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_R1" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblr2" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_R2" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblr3" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_R3" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblr4" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_R4" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblr5" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_R5" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
            <ProgressTemplate>
                <center>
                  <img src="/projects/25/_layouts/1033/IMAGES/loading.gif" alt="Loading..." height="1000px" />Loading...</center>
            </ProgressTemplate>
        </asp:UpdateProgress>


